<template>
  <view>
    <view class="rich-box"><u-parse :html="pageHtml"></u-parse></view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      pageHtml : ''
    };
  },
  onLoad(e){
    let options = this.$Route.query;
    this.getConfig(options.key)
  },
  methods:{
    getConfig(key){
      let that = this;
      that.$http('common.getConfigByKey', {
        key : key
      }).then(res => {
        if (res.code === 1) {
          that.pageHtml=res.data;
        }
      });
    },
  }
}
</script>

<style lang="scss">
// 富文本
.rich-box {
  /deep/ img {
    display: block;
  }
}
</style>
